<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <link th:href="@{/static/plug-in/layui/css/layui.css}" rel="stylesheet" media="all"/>
    <link type="text/css" rel="stylesheet" th:href="@{/static/resources/common/css/entity.css}" media="all"/>
    <link th:href="@{/static/plug-in/icon/themify-icons/themify-icons.min.css}" rel="stylesheet"/>
    <link th:href="@{/static/plug-in/icon/plugins/ionicons/css/ionicons.min.css}" rel="stylesheet"/>
</head>
<body>
<div class="layui-custom-body">
    <header class="layui-custom-header">
        <button class="layui-btn layui-btn-normal layui-btn-sm btn-add">
            <i class="layui-icon">&#xe608;</i> 添加子节点
        </button>
    </header>
    <div class="layui-custom-domain">
        <div class="layui-custom-form">
            <div class="layui-custom-inline">
                <div class="layui-form-item layui-custom-form-item">
                    <label class="layui-form-label">组织名称</label>
                    <div class="layui-input-block">
                        <div class="layui-input" th:text="${entity.name}" style="line-height: 40px;">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-custom-form-item">
                    <label class="layui-form-label">组织编码</label>
                    <div class="layui-input-block">
                        <div class="layui-input" th:text="${entity.code}" style="line-height: 40px;">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-custom-inline">
                <div class="layui-form-item layui-custom-form-item">
                    <label class="layui-form-label">节点类型</label>
                    <div class="layui-input-block" th:if="${entity.type==1}">
                        <div class="layui-input" th:text="根节点" style="line-height: 40px;">

                        </div>
                    </div>
                    <div class="layui-input-block" th:unless="${entity.type==1}">
                        <div class="layui-input" th:text="普通节点" style="line-height: 40px;">

                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-custom-form-item" th:unless="${entity.type==1}">
                    <label class="layui-form-label">所属父节点</label>
                    <div class="layui-input-block">
                        <div class="layui-input" th:text="${entity.parentName}" style="line-height: 40px;">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-custom-inline">
                <div class="layui-form-item layui-custom-form-item">
                    <label class="layui-form-label">排序值</label>
                    <div class="layui-input-block">
                        <div class="layui-input" th:text="${entity.ordernum}" style="line-height: 40px;">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-custom-form-item">
                    <label class="layui-form-label ">状态</label>
                    <div class="layui-input-block layui-custom-input-block">
                        <div class="layui-input" th:if="${1 == entity.state}" th:text="启用" style="line-height: 40px;">
                        </div>
                        <div class="layui-input" th:unless="${1 == entity.state}" th:text="禁用" style="line-height: 40px;">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" name="pid" th:value="${entity.id}"/>
<script th:src="@{/static/plug-in/layui/layui.js}"></script>
<script th:src="@{/static/organization/js/open.js}"></script>
</body>
</html>